package com.woniuxy01;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 作者
 * @create 2025-08-11 10:00
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Student {
    private Integer sid;
    private String sname;
    private String password;
    private Integer age;
    public String email;
    public String phone;

    public void study(){
        System.out.println("study");
    }
    public void study(String course){
        System.out.println("study, course: " + course);
    }
    public void study(String course,int year){
        System.out.println("study,course: " + course+", year: " + year);
    }
    private void sleep(){
        System.out.println("sleep");
    }
    private void sleep(int hours){
        System.out.println("sleep, hours: " + hours);
    }
}
